import { request } from '@/utils/request';
import CRUD from '@/utils/request/CRUD';

// 合同列表CRUD
export const contractListCRUD = CRUD('/decoration/contract');

// 根据订单id获取合同
export function getContractByOrderId(params: Record<string, any>) {
  return request.get({
    url: '/system/order-contract-zheng/page',
    params,
  });
}

// 订单整装合同CRUD
export const orderContractZhengCRUD = CRUD('/system/order-contract-zheng');

// 整装合同发起审批
export function zzContractApproval(data: Record<string, any>) {
  return request.post({
    url: '/system/order-designer/zz-contract-approval',
    data,
  });
}

